package com.wtwd.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wtwd.device.model.entity.LocationData;
import com.wtwd.device.model.vo.LocationDataVo;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author mjy
 * @since 2024-05-21
 */
public interface ILocationDataService extends IService<LocationData> {

    /**
     * 根据起始时间查询设备轨迹
     *
     * @param startTime
     * @param endTime
     * @return
     */
    List<LocationData> getDeviceLocationByTime(Long deviceId,String startTime, String endTime);

    /**
     * 根据时间查询设备最新的定位
     */
    LocationDataVo getNewDeviceLocationByTime(Long deviceId,String time);
}
